package com.cloudream.toucheventdemo.utils;

import android.view.MotionEvent;

/**
 * Created by Administrator on 2019/8/20.
 */

public class EventUtils {

    public static String getEvent(MotionEvent event) {
        switch (event.getAction()) {
            case MotionEvent.ACTION_DOWN:
                return "ACTION_DOWN";
            case MotionEvent.ACTION_UP:
                return "ACTION_UP";
            case MotionEvent.ACTION_MOVE:
                return "ACTION_MOVE";
            case MotionEvent.ACTION_CANCEL:
                return "ACTION_CANCEL";
        }
        return "";
    }


}



